import { Component, OnInit } from '@angular/core';
import {DictService} from "@shared/utils/dict.service";

@Component({
  selector: 'app-group-create-manageattr',
  templateUrl: './group-create-manageattr.component.html',
  styleUrls: ['./group-create-manageattr.component.css']
})
export class GroupCreateManageattrComponent implements OnInit {
  clerkno = '';
  clerkname = '';
  groupcode = '';
  groupname = '';
  groupstatus = '';
  orgno = '';
  orgname = '';
  constructor(public dictService: DictService) {
  }

  ngOnInit() {

  }
  submit() {
    let data = {'manageAtrr':{}}
    if(this.clerkno!=''){
      data['manageAtrr']['clerkno'] =this.clerkno
    }
    if(this.clerkname!=''){
      data['manageAtrr']['clerkname'] =this.clerkname
    }
    if(this.groupcode!=''){
      data['manageAtrr']['groupcode'] =this.groupcode
    }
    if(this.groupname!=''){
      data['manageAtrr']['groupname'] =this.groupname
    }
    if(this.groupstatus!=''){
      data['manageAtrr']['groupstatus'] =this.groupstatus
    }
    if(this.orgno!=''){
      data['manageAtrr']['orgno'] =this.orgno
    }
    if(this.orgname!=''){
      data['manageAtrr']['orgname'] =this.orgname
    }
    return data
  }
}
